﻿
@{
    ViewBag.Title = "AREADEF";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var Cols = new Zephyr.Models.sys_roleMenuColumnMapService().GetCurrentUserMenuColumns();
}

@section scripts{
    <script src="/Content/js/viewModel/com.viewModel.search.js"></script>
    <script type="text/javascript">
        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        var viewModel = function(){ 
            com.viewModel.search.apply(this,arguments);
        }
        ko.bindingViewModel(new viewModel(data));
    </script>
}

    @Html.RenderToolbar()

    <div class="container_12" style="position:relative;">
        <div class="grid_1 lbl">KBCODE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.KBCODE" class="z-txt " /></div>
        <div class="grid_1 lbl">AREANO</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.AREANO" class="z-txt " /></div>
        <div class="grid_1 lbl">AREACAPTION</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.AREACAPTION" class="z-txt " /></div>
        
        <div class="clear"></div>
        
        <div class="grid_1 lbl">LOCX</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.LOCX" class="z-txt " /></div>
        <div class="grid_1 lbl">LOCY</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.LOCY" class="z-txt " /></div>
        <div class="grid_1 lbl">NWIDTH</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.NWIDTH" class="z-txt " /></div>
        
        <div class="clear"></div>
        
        <div class="grid_1 lbl">NHEIGHT</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.NHEIGHT" class="z-txt " /></div>
        <div class="grid_1 lbl">BFTYPE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.BFTYPE" class="z-txt " /></div>

        <div class="clear"></div>

        <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
            <a id="a_search" href="#" class="buttonHuge button-blue" data-bind="click:searchClick" style="margin:0 15px;">查询</a> 
            <a id="a_reset"  href="#" class="buttonHuge button-blue" data-bind="click:clearClick">清空</a>
        </div>
    </div>
 
    <table data-bind="datagrid:grid">
            <thead>  
            <tr>  
                <th field="KBCODE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"KBCODE") >KBCODE</th>
                <th field="AREANO"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"AREANO") >AREANO</th>
                <th field="AREACAPTION"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"AREACAPTION") >AREACAPTION</th>
                <th field="LOCX"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"LOCX") >LOCX</th>
                <th field="LOCY"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"LOCY") >LOCY</th>
                <th field="NWIDTH"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"NWIDTH") >NWIDTH</th>
                <th field="NHEIGHT"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"NHEIGHT") >NHEIGHT</th>
                <th field="BFTYPE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"BFTYPE") >BFTYPE</th>
                <th field="ISHEAD"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"ISHEAD") >ISHEAD</th>
                <th field="VIEWID"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"VIEWID") >VIEWID</th>
                <th field="TXTCONTENT"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"TXTCONTENT") >TXTCONTENT</th>
                <th field="FONTSIZE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"FONTSIZE") >FONTSIZE</th>
                <th field="FONTCOLOR"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"FONTCOLOR") >FONTCOLOR</th>
                <th field="SUNIT"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SUNIT") >SUNIT</th>
                <th field="RUNSPEED"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"RUNSPEED") >RUNSPEED</th>
                <th field="SHOWTIME"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SHOWTIME") >SHOWTIME</th>
                <th field="DESCRIPTION"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"DESCRIPTION") >DESCRIPTION</th>
                <th field="ALIGN"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"ALIGN") >ALIGN</th>
                <th field="SINGLE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SINGLE") >SINGLE</th>
            </tr>                            
        </thead>      
    </table>
 
